package com.top.entities;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangjiawen
 * @since 2020-08-09
 */
@Data
@TableName("BLADE_DATABASE_AUDIT")
public class BladeDatabaseAudit implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "ID", type = IdType.ID_WORKER)
    private Integer id;

    @TableField("DATABASE_TYPE")
    private String databaseType;

    @TableField("USER_NAME")
    private String userName;

    @TableField("EXE_SQL")
    private String exeSql;

    /*@TableField("TABLE_NAME")
    private String tableName;*/

    @TableField("TIME")
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date time;


}
